package com.rm.vip;

import com.rm.vip.api.UserServiceApi;
import com.rm.vip.service.impl.UserServiceImpl;

/**
 * Hello world!
 *
 */
public class App 
{
    public static void main( String[] args )
    {
        RpcServer rpcServer = new RpcServer(20881);
        // 暴露服务
        rpcServer.publishServer(UserServiceApi.class, new UserServiceImpl());
        // 启动服务
        rpcServer.start();
    }
}
